package com.dji.ux.sample.Weather;

public class WeatherParams{
    private double windSpeed;
    //风力 1 1
    private int windPower;
    //风向 2 1
    private int windDirect;
    //土壤1湿度 4 0.1
    private double mudWater ;
    //土壤1温度 5 0.1
    private double mudTemperature;
    //土壤1EC 6 1
    private int mudEc;
    //土壤1PH 7 0.1
    private double mudPh;
    //空气湿度 20 0.1
    private double  airWater;
    //空气温度 21 0.1
    private double airTemperature ;
    //大气压 24 0.1
    private double pressure ;
    //累计雨量（气象站启动至今）31
    private long rainfallAll ;
    //当前雨量（00：00 到现在的雨量）33 0.2
    private double rainfallNowDay;
    //瞬时雨量（一分钟前到现在的雨量）34 0.2
    private double rainfallNowMinute;
    //日雨量（昨天一天的雨量） 35 0.2
    private double rainfallYesterday ;

    public WeatherParams() {
    }

    public WeatherParams(double windSpeed, int windPower, int windDirect, double mudWater, double mudTemperature,
                         int mudEc, double mudPh, double airWater, double airTemperature, double pressure,
                         long rainfallAll, double rainfallNowDay, double rainfallNowMinute, double rainfallYesterday) {
        this.windSpeed = windSpeed;
        this.windPower = windPower;
        this.windDirect = windDirect;
        this.mudWater = mudWater;
        this.mudTemperature = mudTemperature;
        this.mudEc = mudEc;
        this.mudPh = mudPh;
        this.airWater = airWater;
        this.airTemperature = airTemperature;
        this.pressure = pressure;
        this.rainfallAll = rainfallAll;
        this.rainfallNowDay = rainfallNowDay;
        this.rainfallNowMinute = rainfallNowMinute;
        this.rainfallYesterday = rainfallYesterday;
    }

    public double getWindSpeed() {
        return windSpeed;
    }

    public void setWindSpeed(double windSpeed) {
        this.windSpeed = windSpeed;
    }

    public int getWindPower() {
        return windPower;
    }

    public void setWindPower(int windPower) {
        this.windPower = windPower;
    }

    public int getWindDirect() {
        return windDirect;
    }

    public void setWindDirect(int windDirect) {
        this.windDirect = windDirect;
    }

    public double getMudWater() {
        return mudWater;
    }

    public void setMudWater(double mudWater) {
        this.mudWater = mudWater;
    }

    public double getMudTemperature() {
        return mudTemperature;
    }

    public void setMudTemperature(double mudTemperature) {
        this.mudTemperature = mudTemperature;
    }

    public int getMudEc() {
        return mudEc;
    }

    public void setMudEc(int mudEc) {
        this.mudEc = mudEc;
    }

    public double getMudPh() {
        return mudPh;
    }

    public void setMudPh(double mudPh) {
        this.mudPh = mudPh;
    }

    public double getAirWater() {
        return airWater;
    }

    public void setAirWater(double airWater) {
        this.airWater = airWater;
    }

    public double getAirTemperature() {
        return airTemperature;
    }

    public void setAirTemperature(double airTemperature) {
        this.airTemperature = airTemperature;
    }

    public double getPressure() {
        return pressure;
    }

    public void setPressure(double pressure) {
        this.pressure = pressure;
    }

    public long getRainfallAll() {
        return rainfallAll;
    }

    public void setRainfallAll(long rainfallAll) {
        this.rainfallAll = rainfallAll;
    }

    public double getRainfallNowDay() {
        return rainfallNowDay;
    }

    public void setRainfallNowDay(double rainfallNowDay) {
        this.rainfallNowDay = rainfallNowDay;
    }

    public double getRainfallNowMinute() {
        return rainfallNowMinute;
    }

    public void setRainfallNowMinute(double rainfallNowMinute) {
        this.rainfallNowMinute = rainfallNowMinute;
    }

    public double getRainfallYesterday() {
        return rainfallYesterday;
    }

    public void setRainfallYesterday(double rainfallYesterday) {
        this.rainfallYesterday = rainfallYesterday;
    }

    @Override
    public String toString() {
        return "{" +
                "\"windSpeed\":" + windSpeed +
                ", \"windPower\":" + windPower +
                ", \"windDirect\":" + windDirect +
                ", \"mudWater\":" + mudWater +
                ", \"mudTemperature\":" + mudTemperature +
                ", \"mudEc\":" + mudEc +
                ", \"mudPh\":" + mudPh +
                ", \"airWater\":" + airWater +
                ", \"airTemperature\":" + airTemperature +
                ", \"pressure\":" + pressure +
                ", \"rainfallAll\":" + rainfallAll +
                ", \"rainfallNowDay\":" + rainfallNowDay +
                ", \"rainfallNowMinute\":" + rainfallNowMinute +
                ", \"rainfallYesterday\":" + rainfallYesterday +
                '}';
    }
}
